import instance from "@/tools/axios";

// 添加线下客户订单
const addOfflineOrders = async (data: any): Promise<ResponseApiDto> => {
    return instance.post("/SysOfflineOrders/Add", data);
};
// 删除线下客户订单
const deleteOfflineOrders = async (data: any): Promise<ResponseApiDto> => {
    return instance.post("/SysOfflineOrders/Delete", data);
};
// 修改线下客户订单
const updateOfflineOrders = async (data: any): Promise<ResponseApiDto> => {
    return instance.post("/SysOfflineOrders/Update", data);
};
// 查询线下客户订单的编号
const getOfflineOrders = async (params: any): Promise<ResponseApiDto> => {
    return instance.get("/SysOfflineOrders/GetOfflineOrders", params);
};
// 查询线下客户订单的数据
const getOfflineOrder = async (): Promise<ResponseApiDto> => {
    return instance.get("/SysOfflineOrders/GetOfflineOrder",);
};
export { 
    addOfflineOrders,
    updateOfflineOrders,
    getOfflineOrders,
    getOfflineOrder,
    deleteOfflineOrders
};